﻿<phone:PhoneApplicationPage 
    x:Class="PrayerTime.Settings"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerikCore="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Core"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"
    xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" xmlns:my="clr-namespace:System;assembly=mscorlib">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" >
        <Grid.Background>
            <ImageBrush ImageSource="Background2.jpg" />
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}" Foreground="#FFC59221"/>
            <TextBlock x:Name="PageTitle" Text="Settings" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Foreground="#FFC59221"/>
            <ProgressBar Name="progressBar" Foreground="#FFC59221" Visibility="Collapsed" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid Grid.Row="2">
                    <TextBox KeyUp="textBox1_KeyUp" Height="72" HorizontalAlignment="Left" Margin="9,33,0,0" Name="textBox1" Text="" VerticalAlignment="Top" Width="280" />
                    <Button  Content="Search" Height="72" HorizontalAlignment="Left" Margin="287,33,0,0" Name="button1" VerticalAlignment="Top" Width="160" Click="button1_Click" />
                    <TextBlock Height="30" HorizontalAlignment="Left" Margin="21,11,0,0" Name="textBlock1" Text="Set your city:" VerticalAlignment="Top" />
                    <ListBox Height="282" HorizontalAlignment="Left" Margin="21,111,0,0" Name="listBox1" VerticalAlignment="Top" Width="409" FontSize="28" />
                </Grid>
                <Grid Grid.Row="0">
                    <telerikInput:RadListPicker InlineModeThreshold="8" Header="Choose the Calculation Method:" Height="100" HorizontalAlignment="Left" Margin="12,6,0,0" Name="lstCalculationMethod" VerticalAlignment="Top" Width="438"  >
                        <my:String>Muslim World League</my:String>
                        <my:String>Islamic Society of North America</my:String>
                        <my:String>Egyptian General Authority of Survey</my:String>
                        <my:String>Umm al-Qura University, Makkah</my:String>
                        <my:String>University of Islamic Sciences, Karachi</my:String>
                        <my:String>Institute of Geophysics, University of Tehran</my:String>
                        <my:String>Shia Ithna Ashari (Ja`fari)</my:String>
                    </telerikInput:RadListPicker>
                </Grid>
                <Grid Grid.Row="1">
                    <telerikInput:RadListPicker InlineModeThreshold="2" Header="Set Asr Method:" Height="100" HorizontalAlignment="Left" Margin="9,0,0,0" Name="lstAsrMethod" VerticalAlignment="Top" Width="438" >
                        <my:String>Shafii</my:String>
                        <my:String>Hanafi</my:String>
                    </telerikInput:RadListPicker>
                </Grid>
            </Grid>
        </Grid>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False" Opacity="0.25" BackgroundColor="Black" ForegroundColor="#FF72530F" >
            <shell:ApplicationBarIconButton IconUri="save.png" Text="Save" Click="ApplicationBarIconButton_Click_1"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>


</phone:PhoneApplicationPage>
